package rpc

func DefaultOptions() *Options {
	return &Options{
		addr:         ":",
		readTimeout:  300,
		writeTimeout: 10,
	}
}

type Options struct {
	addr         string
	readTimeout  int64
	writeTimeout int64
}

func (ts *Options) SetAddr(v string) *Options {
	ts.addr = v
	return ts
}

func (ts *Options) SetReadTimeout(v int64) *Options {
	ts.readTimeout = v
	return ts
}

func (ts *Options) SetWriteTimeout(v int64) *Options {
	ts.writeTimeout = v
	return ts
}
